class_name UIOperationInstructionForLevel
extends Control

@onready var animation_player: AnimationPlayer = $AnimationPlayer
@onready var nine_patch_rect: NinePatchRect = $NinePatchRect


func _process(delta: float) -> void:
	if Input.is_action_just_pressed("exit") and not animation_player.is_playing() and nine_patch_rect.modulate.a > 0:
		get_tree().paused = false
		Input.mouse_mode = Input.MOUSE_MODE_HIDDEN
		animation_player.play("hide")
		AudioManager.play_sound("sfx_paper_page_flip")
